package cn.kite.controller;

import cn.kite.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kite
 * @description
 * @date 2020/11/10
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private ITestService testService;

    @GetMapping("/test1")
    public Object test1() {
        return testService.select();
    }

    @GetMapping("/test2")
    public Object test2(boolean tr) throws Exception {
        return testService.save(tr);
    }
}
